﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Bill.Print.aspx.cs" Inherits="CreateCusdoc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="assets/jquery/jquery.printElement.js" type="text/javascript"></script>
    <link rel="stylesheet" href="assets/css/billprint.css" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".billhead").text('');
            if (getUrlVars()['id'] != "") {
                //$('#body-wrapper').printElement({overrideElementCSS: ['assets/css/InternalAccPrint.css'],pageTitle:['Internal Accounting Print']});
                printElem({ overrideElementCSS: ['assets/css/billprint.css'] });
            }
        });
        function printElem(options) {
            $('#body-wrapper').printElement(options);

        }
        function getUrlVars() {
            var vars = {};
            var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
                vars[key] = value;
            });
            return vars;
        }
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="main-content">
            <h2>
            </h2>
            <div class="clear">
            </div>
            <div class="content-box" style="border: none;">
                <form id="frmEdit" runat="server">
                <div>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td colspan="2" style="width: 55%; height: 82px;">
                                <asp:Label ID="txtHBLSHPR" runat="server" Style="display: inline-block; width: 85%;"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="txtHBLNO" runat="server" Width="85%"></asp:Label>
                                <p class="billhead">
                                    Onward inland routing ( Not part of carriage as defined.
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 145px;">
                                &nbsp;
                                <p class="billhead">
                                    Consignee (negotiable only if consigned "to order", "to order of" a named Person
                                    or "to order of bearer")
                                </p>
                                <asp:Label ID="txtHBLCNEE" runat="server" Style="display: inline-block; width: 85%;
                                    padding-top: 10px;"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Notify Party
                                </p>
                                <asp:Label ID="txtHBLNTF" runat="server" Width="95%" Text="THE SAME AS CONSIGNEE"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 140px;">
                                &nbsp;
                                <p class="billhead">
                                    Vesse
                                </p>
                                <asp:Label ID="txtVSSL" runat="server" Width="95%"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Voyage No.
                                </p>
                                <asp:Label ID="txtVOYNO" runat="server" Style="display: inline-block; width: 95%;"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Place of Receipt
                                </p>
                                <asp:Label ID="txtPORID" runat="server" Style="display: inline-block; width: 95%;"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <p class="billhead">
                                    Port of loading
                                </p>
                                <asp:Label ID="txtPOLID" runat="server" Width="95%"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Port of discharge
                                </p>
                                <asp:Label ID="txtPODID" runat="server" Width="95%"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Port of Delivery
                                </p>
                                <asp:Label ID="txtDESTID" runat="server" Width="95%"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            &nbsp;
                            <td colspan="3" align="center" class="billhead">
                                PARTICULARS FURNISHED BY SHIPPER
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td>
                                <div class="billshipper">
                                    <asp:Repeater ID="rptShippingDetail" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td style="border-bottom: none; height: 12px;">
                                                    <asp:HiddenField ID="txtID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                                                    </asp:HiddenField>
                                                    <asp:Label ID="txtCONT" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CONT")%>'
                                                        CssClass="clsPol"></asp:Label>
                                                    /&nbsp;<asp:Label ID="txtSEAL" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SEAL")%>'
                                                        CssClass="clsPod"></asp:Label>
                                                    /&nbsp;
                                                    <asp:Label ID="txtContType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ContType")%>'></asp:Label>
                                                    /&nbsp;
                                                    <asp:Label ID="txtPKGS" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "PKGS")%>'></asp:Label>
                                                    <%# Eval("PKGS") != "" ? "/" : ""%>
                                                    &nbsp;
                                                    <asp:Label ID="txtGW" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "GW")%>'></asp:Label>
                                                    &nbsp;<%# Eval("GW") != "" ? "KGS /" : ""%>
                                                    &nbsp;
                                                    <asp:Label ID="txtMEAS" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MEAS")%>'></asp:Label>
                                                    &nbsp;<%# Eval("MEAS") != "" ? "CBM / " : ""%>
                                                    <asp:Label ID="txtTEMP" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TEMP")%>'></asp:Label>
                                                    <%# Eval("TEMP") != "" ? " &deg;C " : ""%>
                                                    &nbsp;
                                                </td>
                                                <td style="width: 15%; text-align: left; height: 12px;">
                                                </td>
                                                <td style="width: 14%; text-align: center; height: 12px;">
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <HeaderTemplate>
                                            <table cellspacing="0" cellpadding="0" width="auto" border="0" class="adminlist"
                                                style="width: 100%; height: 380px;">
                                                <thead>
                                                    <tr>
                                                        <td>
                                                            <div class="shiiperhead">
                                                                <div class="billhead">
                                                                    <span>Kind of packages; Description of goods; Marks and Numbers; Container No./Seal
                                                                        No </span>
                                                                </div>
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <p class="billhead">
                                                                Gross Weight
                                                            </p>
                                                        </td>
                                                        <td>
                                                            <p class="billhead">
                                                                Measurement
                                                            </p>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="border-bottom: none;">
                                                            SHIPPER ' S LOAD, STOW, WEIGHT, COUNT & SEAL
                                                            <div>
                                                                <asp:Label ID="ddTypeOfMovement" runat="server"></asp:Label>
                                                            </div>
                                                        </td>
                                                        <td style="border-bottom: none;">
                                                            <% = spdGW_Sum>0 ? spdGW_Sum.ToString("#,#.00") + " KGS ":"" %>
                                                        </td>
                                                        <td style="border-bottom: none;">
                                                            <% = spdMEAS_Sum>0 ? spdMEAS_Sum.ToString("#,#.00") + " CBM  ":"" %>
                                                        </td>
                                                    </tr>
                                                </thead>
                                        </HeaderTemplate>
                                        <FooterTemplate>
                                            <tr>
                                                <td style="width: 100px; text-align: left; height: 12px;">
                                                    <div>
                                                        <%=strGroupContType%>
                                                        (<% = spdVOL_Sum > 1 ? "CONTAINERS" : "CONTAINER"%>) SAID TO CONTAIN:
                                                        <p style="margin-top: 10px;">
                                                            <asp:Label ID="txtDOGMN" runat="server" TextMode="MultiLine" Rows="12" Style="display: inline-block;
                                                                width: 85%; height: 70px;"></asp:Label>
                                                        </p>
                                                    </div>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <p style="font-size: 28px; font-weight: bold; text-align: right;">
                                                    </p>
                                                    <p>
                                                        <div class="billhead">
                                                        Above particulars as declared by shipper, but without responsibility of or representation
                                                        by Carrier
                                                    </p>
                                                    </div>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            </TABLE>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td style="width: 250px; height: 80px;">
                                <p class="billhead">
                                    Freight & Charges
                                </p>
                                <asp:Label ID="ddTOP" runat="server"></asp:Label>
                            </td>
                            <td style="width: 125px;">
                                <p class="billhead">
                                    Rate
                                </p>
                                <asp:Label ID="txtRATE" runat="server" Width="85%"></asp:Label>
                            </td>
                            <td style="width: 100px;">
                                <p class="billhead">
                                    Unit
                                </p>
                                <asp:Label ID="txtUNIT" runat="server" Width="85%"></asp:Label>
                            </td>
                            <td style="width: 100px;">
                                <p class="billhead">
                                    Currency</p>
                                <asp:Label ID="txtCURR" runat="server" Width="85%"></asp:Label>
                            </td>
                            <td style="width: 150px;">
                                <p class="billhead">
                                    Prepaid</p>
                                <asp:Label ID="txtPREPAID" runat="server" Width="85%"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Collect</p>
                                <asp:Label ID="txtCOLLECT" runat="server" Width="85%"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 33px;">
                                <p class="billhead">
                                    Freight payable at
                                </p>
                                <asp:Label ID="txtPAYABLEAT" runat="server" Width="98%"></asp:Label>
                            </td>
                            <td colspan="2">
                                <p class="billhead">
                                    Place of issue of B/L
                                </p>
                                <asp:Label ID="txtPOISS" runat="server" Width="98%"></asp:Label>
                            </td>
                            <td colspan="3" rowspan="3">
                                <p class="billhead">
                                    RECEIVED in apparent good order and condition except as otherwise noted the total
                                    number of containers of packages or units enumerated below for transportation from
                                    the place of receipt to the place of delivery subject to the terms hereof. One of
                                    the original Bill of Lading must be surrender duty endorsed in exchange for the
                                    Goods or delivery order on presentation of this docunment (duty endorsed) to the
                                    Carrier by or on behalf of the holder the rights and liabilities arising in accordance
                                    with the terms hereof shall (without prejudice to any rule of common law or statute
                                    rendering them binding on the merchant) become binding in all respects between the
                                    Carrier and the holders as though the contract evidenced hereby had been made between
                                    them. IN WITNESS whereof the number of original Bills of Lading stated below have
                                    been signed, one of which being accomplished the other(s) to be void.
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 33px;">
                                <p class="billhead">
                                    Number & Original B(s)/L
                                </p>
                                <asp:Label ID="ddNOORI" runat="server"></asp:Label>
                            </td>
                            <td>
                                <p class="billhead">
                                    Date of issue of B/L
                                </p>
                                <asp:Label ID="txtDOISS" runat="server" Width="85%"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 33px;">
                                <p class="billhead">
                                    Declare Value
                                </p>
                            </td>
                            <td>
                                <p class="billhead">
                                    Shipped on Board Date
                                </p>
                                <asp:Label ID="txtSHONBOARD" runat="server" Width="95%"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="bottom">
                                <p class="billhead">
                                    For Delivery, Please Contact:
                                </p>
                                <asp:Label ID="txtAGDLVR" runat="server" Style="display: inline-block; width: 95%;"></asp:Label>
                            </td>
                            <td colspan="4" valign="bottom" align="center" height="85px">
                                <asp:Label ID="txtCARRN" runat="server" Style="display: inline-block; width: 95%;"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
